import Vue from 'vue'
import App from './App.vue'
import router from './router'

Vue.config.productionTip = false

// 导入index组件
import Header from "./components/index/Header.vue"; 
import Banner from "./components/index/Banner.vue"; 
import List from "./components/index/List.vue"; 

// 导入bbt组件
import Header2 from "./components/bbt/Header.vue"; 
import List2 from "./components/bbt/List.vue"; 
// import Tabbar from "./components/bbt/Tabbar.vue"; 

// 导入订单组件
import Header3 from "./components/order/Header.vue"; 
import List3 from "./components/order/List.vue"; 

// 导入我的组件
import Titter from "./components/mine/Titter.vue"; 
import Vip from "./components/mine/vip.vue"; 
import User from "./components/mine/user.vue"; 
import Gongju from "./components/mine/gongju.vue"; 

// 导入购物车组件
import Car from "./components/car.vue"; 



// 注册index组件
Vue.component('Header',Header)
Vue.component('Banner',Banner)
Vue.component('List',List)
// 注册bbt组件
Vue.component('Header2',Header2)
Vue.component('List2',List2)
// Vue.component('Tabbar',Tabbar)
// Vue.component('Bbt',Bbt)
// 注册订单组件
Vue.component('Header3',Header3)
Vue.component('List3',List3)
// 注册我的组件
Vue.component('Titter',Titter)
Vue.component('Vip',Vip)
Vue.component('User',User)
Vue.component('Gongju',Gongju)
// 注册购物车组件
Vue.component('Car',Car)



// 组件库
import { Button } from 'vant';
import { Swipe, SwipeItem } from 'vant';
import { Tabbar, TabbarItem } from 'vant';
import { NavBar } from 'vant';
import { Icon } from 'vant';
import { Toast } from 'vant';
import { Grid, GridItem } from 'vant';
import { AddressEdit } from 'vant';
import { AddressList } from 'vant';

Vue.use(AddressList);
Vue.use(AddressEdit);
Vue.use(Grid);
Vue.use(GridItem);
Vue.use(Toast);
Vue.use(Icon);
Vue.use(NavBar);
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Button);

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
